<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>${u_user.username}的主页 - ${title_suffix}</title>
<% include("/include/link.html",{version:"1.0.0"}){}%>
</head>
<body class="fly-full">

<% include("/include/header.html"){}%>

<div class="fly-home fly-panel" style="background-image: url();">
  <img src="${u_user.avatar}" alt="${u_user.username}">
  <% if(isNotEmpty(u_user.authentication)){ %>
    <i class="iconfont icon-renzheng" title="${u_user.authentication}"></i>
  <% } %>

    <h1>
     ${u_user.username}
      <i class="iconfont <% if(u_user.sex == '0'){ %>
                          icon-nan
                          <% }else if(u_user.sex == '1'){ %>
                          icon-nv
                          <% } %>"></i>
       <% if(isNotEmpty(u_user.authentication)){ %>
        <i class="layui-badge fly-badge-vip">${u_user.authentication}</i>
       <% } %>
      <% if(u_user.start == '2') { %>
      <span style="color:#c00;">（账号禁用）</span>
      <% }else if(u_user.start == '1') { %>
      <span style="color:#c00;">（账号锁定）</span>
      <% }else if(u_user.role == '3') { %>
      <span>（普通用户）</span>
      <% }else if(u_user.role == '2') { %>
      <span style="color:#5FB878;">（管理员）</span>
      <% }else if(u_user.role == '1'){ %>
      <span style="color:#c00;">（超级管理员）</span>
      <% } %>
  </h1>

  <!--<% if(isNotEmpty(u_user.authentication)){ %>
    <p style="padding: 10px 0; color: #5FB878;">认证信息：${u_user.authentication}</p>
  <% } %>-->

  <p class="fly-home-info">
    <!--<i class="iconfont icon-kiss" title="飞吻"></i><span style="color: #FF7200;">&lt;!&ndash;{{info.experience}}&ndash;&gt;飞吻</span>-->
    <i class="iconfont icon-shijian"></i><span><!--{{lay.time(info.joinTime, 1)}}-->${u_user.jointime} 加入</span>
    <i class="iconfont icon-chengshi"></i><span>来自 ${u_user.city}</span>
  </p>

  <p class="fly-home-sign">（${u_user.sign!'这个人很懒，什么都不留下'}）</p>

  <!--<div class="fly-sns" data-user="{{ encodeURIComponent(userinfo) }}">
    <a href="javascript:;" class="layui-btn layui-btn-primary fly-imActive" data-type="addFriend">加为好友</a>
    <a href="javascript:;" class="layui-btn layui-btn-normal fly-imActive" data-type="chat">发起会话</a>
  </div>-->

</div>

<div class="layui-container">
  <div class="layui-row layui-col-space15">
    <div class="layui-col-md6 fly-home-jie">
      <div class="fly-panel">
        <h3 class="fly-panel-title">${u_user.username} 最近的帖子</h3>
        <ul class="jie-row">
        <!--{{# jie.forEach(function(item, index){ }}-->
          <li>
            <!--{{ item.status == 1 ? '--><span class="fly-jing layui-hide-xs">精</span><!--' : ''}}-->
            <a href="/info/article.html" class="jie-title">百度一下 你就知道</a>
            <i>2018-7-23</i>
            <em class="layui-hide-xs">432阅/122答</em>
          </li>
        <!--{{# }); }}
        
        {{# if(jie.length === 0){ }}-->
        <div class="fly-none" style="min-height: 50px; padding:30px 0; height:auto;"><i style="font-size:14px;">没有发表任何求解</i></div>
        <!--{{# } }}-->
        </ul>
      </div>
    </div>
    
    <div class="layui-col-md6 fly-home-da">
      <div class="fly-panel">
        <h3 class="fly-panel-title">${u_user.username} 最近的回答</h3>
        <ul class="home-jieda">
          <li>
            <p>
              <span>{{lay.time(item.time)}}</span>
              在<a href="/jie/{{item.jid}}/#item-{{item.time}}" target="_blank">{{= item.title||'求解'}}</a>中回答：
            </p>
            <div class="home-dacontent">{{d.content(item.content)}}</div>
          </li>
        <!--{{# da.forEach(function(item, index){ }}
        <li>
          <p>
          <span>{{lay.time(item.time)}}</span>
          在<a href="/jie/{{item.jid}}/#item-{{item.time}}" target="_blank">{{= item.title||'求解'}}</a>中回答：
          </p>
          <div class="home-dacontent">{{d.content(item.content)}}</div>
        </li>
        {{# }); }}-->
        
        <!--{{# if(da.length === 0){ }}-->
        <div class="fly-none" style="min-height: 50px; padding:30px 0; height:auto;"><span>没有回答任何问题</span></div>
        <!--{{# }; }}-->
        </ul>
      </div>
    </div>
  </div>
</div>

<% include("/include/footer.html",{version:"1.0.0"}){}%>
</body>
</html>